package com.example.demo.service.exception;

/**
 * @Package com.gsunis.epay.service.exception
 * @Description: TODO ( 自定义异常处理 )
 * @Author rxbyes
 * @Date 2017 上午8:47
 * @Version V1.0
 */
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 569577232948574067L;

    public ErrorCode errorCode;

    public ServiceException(ErrorCode errorCode) {
        super(errorCode.message);
        this.errorCode = errorCode;
    }
    /*public ServiceException(String httpStatus,ErrorCode errorCode) {
        super(errorCode.message);
        this.errorCode = errorCode;
        this.httpStatus = httpStatus;
    }*/

}
